package cli

import (
	"fmt"

	"github.com/spf13/cobra"
)

var (
	// ossProvier string
	verson bool 
)

var RootCmd = &cobra.Command{
	Use: "cloud-station-cli",
	Long: "cloud-station-cli 云中转站",
	Short: "cloud-station-cli 云中转站",
	Example: "cloud-station-cli cmds",
	RunE: func(cmd *cobra.Command, args []string) error {
		if verson {
			fmt.Println("cloud-station-cli v0.0.1")
		}
		return nil 
	},
}

func init() {
	f := RootCmd.PersistentFlags()
	// f.StringVarP(&ossProvier, "provier", "p", "aliyun", "oss storage provier [aliyun|tx|aws]"),
	// 指定哪个参数  长参数  短参数  默认值 描述信息
	f.BoolVarP(&verson, "version", "v", false, "cloud station 版本信息")
}